package com.wanmait.demo.mapper;

import com.wanmait.demo.pojo.Userinfo;

public interface UserinfoMapper {


        //zjj
        Userinfo getUserInfoForPersonCenter(Integer userid);


        int deleteByPrimaryKey(Integer id);

        int insert(Userinfo record);

        int insertSelective(Userinfo record);

        Userinfo selectByPrimaryKey(Integer id);

        int updateByPrimaryKeySelective(Userinfo record);

        int updateByPrimaryKey(Userinfo record);
//查询用户 登录  尹山坤
        Userinfo finduser(Userinfo userinfo);

        void updatauserpass(int userid, String userpass);

    Userinfo checkusername(String username);//检查用户名是否重复

        void insertuser(String username, String userpass,String phonenum);//尹山坤  注册新用户

    Userinfo checkphonenum(String phonenum);//尹山坤 检查手机号是否被注册
}